import 'package:flutter/material.dart';

import 'routers/router.dart';

void main() => runApp(MyApp());

class MyApp extends StatefulWidget {
  MyApp({Key key}) : super(key: key);

  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
        //项目默认目录
        initialRoute:'/',
        onGenerateRoute:onGenerateRoute,

        //设置主题颜色
        theme: ThemeData(
          // primaryColor: Colors.yellow
            primaryColor: Colors.white
        ),
    );
  }
}